#pragma once
#ifndef H_Plane
#define H_Plane

#include <stdio.h>

#include "Object.h"
#include "Vector3.h"
#include "Ray.h"

class Plane: public Object {
	public:
		Plane(void);
		Plane(Vector3 point, Vector3 normal);
		
		Vector3 normal(Vector3 p);
		Object* tIntersect(const Ray& ray, float& distance);
		
		Vector3 center;
		float distanceFromOrigin;
};
#endif